package com.safe.first.infrastructure.service;

import lombok.Getter;
import org.springframework.security.authentication.AbstractAuthenticationToken;

/**
 * @author Mickey
 * @since 2022/6/26
 **/
@Getter
public class VerificationCodeAuthenticationToken extends AbstractAuthenticationToken {

    private final Object principal;
    private final Object credentials;

    public VerificationCodeAuthenticationToken(Object principal, Object credentials) {
        super(null);
        this.principal = principal;
        this.credentials = credentials;
        setAuthenticated(true);
    }

}
